Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 6028 - vlv index keys inconsistencies #6031

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

progier389
Copy link
Contributor

@progier389 progier389 commented Jan 10, 2024

The issue is that reindexed vlv database are not cleared, so old keys remains
Solution: truncate the reindexed vlv sub database and its cache before starting the import engine.
Note: this is tested by: dirsrvtests/tests/suites/vlv/regression_test.py::test_vlv_cache_subdb_names CI test

Issue #6028

Reviewed by: @droideck (Thanks!)

@progier389 progier389 changed the title Issue 6028 - vlv index inconsistencies Issue 6028 - vlv index keys inconsistencies Jan 10, 2024
@progier389 progier389 linked an issue Jan 10, 2024 that may be closed by this pull request
Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest looks good!
P.S. nice touch with the truncate_index_dbi callback!

@@ -157,6 +157,7 @@ int dbmdb_run_ldif2db(Slapi_PBlock *pb);


/* mdb_import_threads.c */
const char *attr_in_list(const char *search, char **list);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line seems to be unrelated to the change (and not mentioned in the commit message). Is it here by mistake or do I miss something?

Copy link
Contributor Author

@progier389 progier389 Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right: this is a left over of a previous attempt that was using attr_in_list instead of is_reindex attr
I will remove it.

@progier389 progier389 merged commit 5936946 into 389ds:main Jan 11, 2024
9 checks passed
@progier389 progier389 deleted the i6028 branch January 11, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vlv index keys inconsistencies
2 participants